package mysql

func GetArticle(pageSize, current int) (articleList []*model.Article, err error) {
	if pageSize<=0 || current<=0 {
		return
	}
	sqlstr := `select id,article_name,create_time from article where
	order by create_time desc
	limit ?,?
	`
	err := DB.select(&articleList, sqlstr, pageSize, current)
	return
}
